<template>
  <div class="note-editer-container">
    <div id="note"></div>
    <div class="insert-time">
      <i class="el-icon-time"></i>
    </div>
  </div>
</template>
<script>
import E from "wangeditor";
// import { ENote } from "@/utils/note-editer.js";
export default {
  data() {
    return {};
  },
  methods: {
    initEditer() {
      const editor = new E("#note");
      editor.config.menus = $.map(editor.config.menus, function (item, key) {
        if (item === "video") {
          return null;
        }
        if (item === "emoticon") {
          return null;
        }
        if (item === "image") {
          return null;
        }
        return item;
      });
      editor.create();
    },
  },
  mounted() {
    this.initEditer();
  },
  created() {},
};
</script>
<style lang="scss">
.note-editer-container {
  #note {
  }
  .insert-time {
    position: absolute;
    top: 20px;
    right: 80px;
    z-index: 9999;
    background-color: red;
  }
}
</style>